<script setup lang="ts">
const props: any = defineProps<{
    ujt?: any;
    asaidata: any;
    formdata: any;
    formkey: any;
}>();
</script>

<template>
    <label>
        <span
            v-if="Array.isArray(props.formdata)"
            :class="`${asaidata.ic > 1 ? 'as-form-ico-arr' : ''}${
                asaidata?.rule?.[formkey]?.require ? ' as-form-ico-require' : ''
            }`"
        ></span>
        <span
            v-else
            :class="`${asaidata.ic > 1 ? 'as-form-ico' : ''}${
                asaidata?.rule?.[formkey]?.require ? ' as-form-ico-require' : ''
            }`"
        >
            {{ asaidata.eq > 2 ? '"' : ''
            }}{{ props.asaidata?.lang?.[formkey] || formkey
            }}{{ asaidata.eq > 2 ? '"' : '' }}{{ asaidata.eq ? ':' : '' }}
        </span>
        <slot></slot>{{ asaidata.eq > 2 ? ',' : '' }}
    </label>
</template>

<style scoped lang="scss">
span > b {
    color: var(--cz8);
}
</style>
